Find transfer function from block diagram